package com.huluobo.base.db;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.huluobo.base.bean.Money;

/**
 * Created by LC on 2024/10/10.
 */
@Dao
public interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertMoneyInfo(Money money);

    @Update
    void updateMoneyInfo(Money money);

    @Delete
    void deleteMoneyInfo(Money money);

    @Query("select * from money_info where username = :name")
    Money queryMoneyByName(String name);
}
